package com.huabo.monitor.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author yhr
 * @since 2022-08-26
 */
@TableName("TBL_BUG")
@ApiModel(value = "TblBug对象", description = "")
@KeySequence(value="HIBERNATE_SEQUENCE",dbType = DbType.ORACLE)
public class TblBug implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type= IdType.INPUT)
    @ApiModelProperty("ID")
    private BigDecimal bugid;

    @ApiModelProperty("缺陷编号")
    private String bugnumber;

    @ApiModelProperty("缺陷描述")
    private String bugdescripte;

    @ApiModelProperty("发现日期")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime discovertime;

    @ApiModelProperty("发现人")
    private String discoverperson;

    @ApiModelProperty("缺陷性质")
    private String bugproperty;

    @ApiModelProperty("缺陷来源")
    private String bugsource;

    @ApiModelProperty("缺陷部门")
    private String bugdepartment;

    @ApiModelProperty("是否需要整改")
    private String needreform;

    @ApiModelProperty("不整改原因")
    private String resonfornoreform;

    @ApiModelProperty("状态")
    private String bugreformstatus;

    private String projectname;

    @ApiModelProperty("备注")
    private String memo;

    //TBL_BUG 外键
    @ApiModelProperty("管理缺陷id")
    private BigDecimal fatherbugid;

    @ApiModelProperty("类别")
    private BigDecimal inbugidb;

    @ApiModelProperty("所属模块")
    private String bugbysystem;

    @ApiModelProperty("业务描述")
    private String businessdescription;

    private BigDecimal projectid;

    public BigDecimal getBugid() {
        return bugid;
    }

    public void setBugid(BigDecimal bugid) {
        this.bugid = bugid;
    }
    public String getBugnumber() {
        return bugnumber;
    }

    public void setBugnumber(String bugnumber) {
        this.bugnumber = bugnumber;
    }
    public String getBugdescripte() {
        return bugdescripte;
    }

    public void setBugdescripte(String bugdescripte) {
        this.bugdescripte = bugdescripte;
    }
    public LocalDateTime getDiscovertime() {
        return discovertime;
    }

    public void setDiscovertime(LocalDateTime discovertime) {
        this.discovertime = discovertime;
    }
    public String getDiscoverperson() {
        return discoverperson;
    }

    public void setDiscoverperson(String discoverperson) {
        this.discoverperson = discoverperson;
    }
    public String getBugproperty() {
        return bugproperty;
    }

    public void setBugproperty(String bugproperty) {
        this.bugproperty = bugproperty;
    }
    public String getBugsource() {
        return bugsource;
    }

    public void setBugsource(String bugsource) {
        this.bugsource = bugsource;
    }
    public String getBugdepartment() {
        return bugdepartment;
    }

    public void setBugdepartment(String bugdepartment) {
        this.bugdepartment = bugdepartment;
    }
    public String getNeedreform() {
        return needreform;
    }

    public void setNeedreform(String needreform) {
        this.needreform = needreform;
    }
    public String getResonfornoreform() {
        return resonfornoreform;
    }

    public void setResonfornoreform(String resonfornoreform) {
        this.resonfornoreform = resonfornoreform;
    }
    public String getBugreformstatus() {
        return bugreformstatus;
    }

    public void setBugreformstatus(String bugreformstatus) {
        this.bugreformstatus = bugreformstatus;
    }
    public String getProjectname() {
        return projectname;
    }

    public void setProjectname(String projectname) {
        this.projectname = projectname;
    }
    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }
    public BigDecimal getFatherbugid() {
        return fatherbugid;
    }

    public void setFatherbugid(BigDecimal fatherbugid) {
        this.fatherbugid = fatherbugid;
    }
    public BigDecimal getInbugidb() {
        return inbugidb;
    }

    public void setInbugidb(BigDecimal inbugidb) {
        this.inbugidb = inbugidb;
    }
    public String getBugbysystem() {
        return bugbysystem;
    }

    public void setBugbysystem(String bugbysystem) {
        this.bugbysystem = bugbysystem;
    }
    public String getBusinessdescription() {
        return businessdescription;
    }

    public void setBusinessdescription(String businessdescription) {
        this.businessdescription = businessdescription;
    }
    public BigDecimal getProjectid() {
        return projectid;
    }

    public void setProjectid(BigDecimal projectid) {
        this.projectid = projectid;
    }

    @Override
    public String toString() {
        return "TblBug{" +
            "bugid=" + bugid +
            ", bugnumber=" + bugnumber +
            ", bugdescripte=" + bugdescripte +
            ", discovertime=" + discovertime +
            ", discoverperson=" + discoverperson +
            ", bugproperty=" + bugproperty +
            ", bugsource=" + bugsource +
            ", bugdepartment=" + bugdepartment +
            ", needreform=" + needreform +
            ", resonfornoreform=" + resonfornoreform +
            ", bugreformstatus=" + bugreformstatus +
            ", projectname=" + projectname +
            ", memo=" + memo +
            ", fatherbugid=" + fatherbugid +
            ", inbugidb=" + inbugidb +
            ", bugbysystem=" + bugbysystem +
            ", businessdescription=" + businessdescription +
            ", projectid=" + projectid +
        "}";
    }
}
